<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>系统首页</title>
  <link rel="stylesheet" href="{$CSS}/bootstrap3.3.7.min.css">
  <style>
    td, th {
      text-align: center;
      vertical-align: middle !important;
    }
  </style>
</head>

<body>
<div style="padding:20px">
		<form class="form-inline" method="get" action="" name="Form" id="Form1">
            <div class="form-group">
                <label for="exampleInputName2">开始时间</label>
				{$tj->datetime('begin_time','class="form-control" placeholder="开始时间"')}
            </div>
            <div class="form-group">
                <label for="exampleInputName2">结束时间</label>
				{$tj->datetime('end_time','class="form-control" placeholder="结束时间"')}
            </div>
            <div class="form-group">
                <label for="exampleInputEmail2">账号</label>
				{$tj->text('name')}
            </div>
            <button type="submit" class="btn btn-primary">查询</button>
        </form>
  <div style="margin-top:15px">
    <table class="table table-bordered table-hover">
      <thead>
      <tr>
        <th>ID</th>
        <th>账号</th>
        <th>充值金额</th>
        <th>充值时间</th>
        <th>订单号</th>
      </tr>
      </thead>
      <tbody>
      {loop $res as $r}
      <tr>
        <td>{$r->id}</td>
        <td>{$r->user->un}</td>
        <td>{$r->money}</td>
        <td>{date('Y-m-d H:i:s',$r->recharge_time)}</td>
        <td>{$r->out_trade_no}</td>
      </tr>
      {/loop}
      </tbody>
    </table>
  </div>
  <div>
    <div style="display: inline-block">
      <span>{$p->totalnum}条/{$p->totalpage}页</span>
    </div>
    <div class="pagination" style="display: inline-block;float: right;margin: 0">
      {P}
    </div>
  </div>
</div>
</body>
</html>
<script type="text/javascript">
</script>